package com.medisched.medisched.service.impl;

import com.medisched.medisched.domain.Shiftchange;
import com.medisched.medisched.mapper.ShiftchangeMapper;
import com.medisched.medisched.service.IShiftchangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 调班记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class ShiftchangeServiceImpl implements IShiftchangeService
{
    @Autowired
    private ShiftchangeMapper shiftchangeMapper;

    /**
     * 查询调班记录
     * 
     * @param id 调班记录主键
     * @return 调班记录
     */
    @Override
    public Shiftchange selectShiftchangeById(Long id)
    {
        return shiftchangeMapper.selectShiftchangeById(id);
    }

    /**
     * 查询调班记录列表
     * 
     * @param shiftchange 调班记录
     * @return 调班记录
     */
    @Override
    public List<Shiftchange> selectShiftchangeList(Shiftchange shiftchange)
    {
        return shiftchangeMapper.selectShiftchangeList(shiftchange);
    }

    /**
     * 新增调班记录
     * 
     * @param shiftchange 调班记录
     * @return 结果
     */
    @Override
    public int insertShiftchange(Shiftchange shiftchange)
    {
        return shiftchangeMapper.insertShiftchange(shiftchange);
    }

    /**
     * 修改调班记录
     * 
     * @param shiftchange 调班记录
     * @return 结果
     */
    @Override
    public int updateShiftchange(Shiftchange shiftchange)
    {
        return shiftchangeMapper.updateShiftchange(shiftchange);
    }

    /**
     * 批量删除调班记录
     * 
     * @param ids 需要删除的调班记录主键
     * @return 结果
     */
    @Override
    public int deleteShiftchangeByIds(Long[] ids)
    {
        return shiftchangeMapper.deleteShiftchangeByIds(ids);
    }

    /**
     * 删除调班记录信息
     * 
     * @param id 调班记录主键
     * @return 结果
     */
    @Override
    public int deleteShiftchangeById(Long id)
    {
        return shiftchangeMapper.deleteShiftchangeById(id);
    }
}
